package some.member.admin.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import some.member.dao.MemberDao;

@Controller
public class AdminMemberDeleteController {
	
	@Autowired
	private MemberDao memberDao;
	
	@RequestMapping("/adminMemberDelete.do")
	public void process(@RequestParam("id")String id){
		
		if(memberDao.getMember(id).getGrade()==9){
			return;
		}
		memberDao.modifyGrade(id);
	}
	
}
